package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 销售订单明细对象 hh_order_detail
 * @author chongjin
 * @date 2020-11-18
 */
public class HhOrderDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long odId;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Long productId;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private String productNum;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String productUnit;

    /**
     * 商品售价
     */
    private String detailPrice;

    /**
     * 金额
     */
    private String detailAmount;

    /**
     * 删除
     */
    private Long isDel;

    public void setOdId(Long odId) {
        this.odId = odId;
    }

    public Long getOdId() {
        return odId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductNum(String productNum) {
        this.productNum = productNum;
    }

    public String getProductNum() {
        return productNum;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setIsDel(Long isDel) {
        this.isDel = isDel;
    }

    public Long getIsDel() {
        return isDel;
    }

    public void setDetailAmount(String detailAmount) {
        this.detailAmount = detailAmount;
    }

    public String getDetailAmount() {
        return detailAmount;
    }

    public String getDetailPrice() {
        return detailPrice;
    }

    public void setDetailPrice(String detailPrice) {
        this.detailPrice = detailPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("odId", getOdId())
                .append("orderId", getOrderId())
                .append("productId", getProductId())
                .append("productNum", getProductNum())
                .append("productUnit", getProductUnit())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("isDel", getIsDel())
                .append("detailAmount", getDetailAmount())
                .toString();
    }
}
